WPAICG\WPAICG_Playground D

Total Complexity 220
Dependencies 6
Dependents 3
Total lines 1,231
Lines of code 829
Logical lines of code 470
Comment lines 250
Methods 28
Properties 2

Methods 28

Method Rating Maintainability Complexity Lines of code
wpaicg_token_handling()
D
30 36 113
wpaicg_stream()
C
37 25 69
build_ai_args()
B
41 24 53
get_defined_prompt()
A
42 14 48
get_embeddings_details()
A
41 11 58
search_pinecone()
A
44 10 45
wpaicg_embeddings_result_qdrant()
A
48 8 30
handle_embeddings()
A
48 7 35
send_google_request()
S
44 6 45
handle_google_stream_sse()
S
50 7 28
wpaicg_embeddings_result_pinecone()
S
51 7 24
get_embedding_model()
S
54 7 20
search_qdrant()
S
47 6 35
initialize_ai_instance()
S
53 6 22
handle_sse_callback()
S
56 6 17
wpaicg_event_message()
S
54 5 21
handle_openai_like_stream()
S
49 4 32
send_togetherai_request()
S
47 3 37
stream_words_as_sse()
S
58 4 16
process_stream_response()
S
58 4 14
wpaicg_get_cookie_id()
S
58 4 13
wpaicg_generate_content_togetherai()
S
66 3 7
wpaicg_generate_content_google()
S
66 3 7
save_wpaicg_google_api_key()
S
62 3 10
save_wpaicg_togetherai_api_key()
S
62 3 10
get_instance()
S
72 2 6
__construct()
S
65 1 8
prepare_api_params()
S
72 1 6